package com.rizzo.android.ui.fragment;

import android.R;
import android.os.Bundle;
import android.view.View;
import android.view.animation.AnimationUtils;
import android.view.animation.LayoutAnimationController;
import android.widget.ListView;
import com.rizzo.android.ui.adapter.ContentViewAdapter;

/**
 * Created with IntelliJ IDEA.
 * User: jalie
 * Date: 12/28/12
 * Time: 11:32 AM
 * To change this template use File | Settings | File Templates.
 */
public class InfoFragment extends RizzoFragment {

    @Override
    public void onViewCreated(View view, Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        ListView listView = (ListView) view.findViewById(R.id.list);
        listView.setDivider(null);
        ContentViewAdapter adapter = new ContentViewAdapter(getActivity(), listView);
        LayoutAnimationController controller = AnimationUtils.loadLayoutAnimation(getActivity(), com.rizzo.android.R.anim.content_list_animation);
        listView.setLayoutAnimation(controller);
        listView.setAdapter(adapter);
    }
}
